package me.xinping.libs.utils

import org.junit.Assert
import org.junit.Before
import org.junit.Test

/**
 * .
 *
 *
 * Date 2018/12/5
 *
 * @author fanxinping_cd@keruyun.com
 */
class TimeUtilsTest : BaseTest() {


    @Before
    override fun setUp() {
    }

    @Test
    @Throws(Exception::class)
    fun testSeconds2Time() {
        var result = TimeUtils.seconds2Time(10)
        println("result = $result")
        Assert.assertEquals("00:10", result)
        result = TimeUtils.seconds2Time(70)
        println("result = $result")
        Assert.assertEquals("01:10", result)
        result = TimeUtils.seconds2Time(3610)
        println("result = $result")
        Assert.assertEquals("01:00:10", result)    }
}

